Optimal. Leaf size=19 \[ \frac {\log (a+b \csc (x))}{a}+\frac {\log (\sin (x))}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {3970, 36, 29,
31} \begin {gather*} \frac {\log (a+b \csc (x))}{a}+\frac {\log (\sin (x))}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 3970
Rubi steps
\begin {align*} \int \frac {\cot (x)}{a+b \csc (x)} \, dx &=-\text {Subst}\left (\int \frac {1}{x (a+x)} \, dx,x,b \csc (x)\right )\\ &=-\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,b \csc (x)\right )}{a}+\frac {\text {Subst}\left (\int \frac {1}{a+x} \, dx,x,b \csc (x)\right )}{a}\\ &=\frac {\log (a+b \csc (x))}{a}+\frac {\log (\sin (x))}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 11, normalized size = 0.58 \begin {gather*} \frac {\log (b+a \sin (x))}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 21, normalized size = 1.11
method | result | size |
derivativedivides | \(\frac {\ln \left (a +b \csc \left (x \right )\right )}{a}-\frac {\ln \left (\csc \left (x \right )\right )}{a}\) | \(21\) |
default | \(\frac {\ln \left (a +b \csc \left (x \right )\right )}{a}-\frac {\ln \left (\csc \left (x \right )\right )}{a}\) | \(21\) |
risch | \(-\frac {i x}{a}+\frac {\ln \left ({\mathrm e}^{2 i x}-1+\frac {2 i b \,{\mathrm e}^{i x}}{a}\right )}{a}\) | \(33\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 11, normalized size = 0.58 \begin {gather*} \frac {\log \left (a \sin \left (x\right ) + b\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.12, size = 11, normalized size = 0.58 \begin {gather*} \frac {\log \left (a \sin \left (x\right ) + b\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cot {\left (x \right )}}{a + b \csc {\left (x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 12, normalized size = 0.63 \begin {gather*} \frac {\log \left ({\left | a \sin \left (x\right ) + b \right |}\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.42, size = 55, normalized size = 2.89 \begin {gather*} \frac {2\,\mathrm {atanh}\left (\frac {a\,\left (2\,b^3\,\sin \left (x\right )+\frac {5\,a\,b^2}{2}-a^3-\frac {a\,b^2\,\cos \left (2\,x\right )}{2}\right )}{{\left (-a^2+\sin \left (x\right )\,a\,b+2\,b^2\right )}^2}\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________